#@layout()

#define main()
<div class="layui-container fly-marginTop fly-user-main">
    #@user_side("index")

    <div class="site-tree-mobile layui-hide">
        <i class="layui-icon">&#xe602;</i>
    </div>
    <div class="site-mobile-shade"></div>

    <div class="site-tree-mobile layui-hide">
        <i class="layui-icon">&#xe602;</i>
    </div>
    <div class="site-mobile-shade"></div>


    <div class="fly-panel fly-panel-user" pad20>
        <!--
        <div class="fly-msg" style="margin-top: 15px;">
          您的邮箱尚未验证，这比较影响您的帐号安全，<a href="activate.html">立即去激活？</a>
        </div>
        -->
        <div class="layui-tab layui-tab-brief" lay-filter="user">
            <ul class="layui-tab-title" id="LAY_mine">
                <li data-type="mine-jie" lay-id="index" class="layui-this">我发的帖（<span>#if(contents.total??0 < 1) 0 #else #(contents.total) #end</span>）</li>
                <li data-type="collection" data-url="/collection/find/" lay-id="collection">我收藏的帖（<span>#if(collects.total??0 < 1) 0 #else #(collects.total) #end</span>）</li>
            </ul>
            <div class="layui-tab-content" style="padding: 20px 0;">
                <div class="layui-tab-item layui-show">
                    <ul class="mine-view jie-row">
                        #for(x : contents.rows)
                        <li>
                            <a class="jie-title" href="/jie/detail/#(x.contentId)" target="_blank">#(x.title)</a>
                            <i>#(x.createTime) </i>
                            <a class="mine-edit" href="/jie/add/#(x.contentId)">编辑</a>
                            <em>#(x.viewNum)阅/#(x.replyNum)答</em>
                        </li>
                        #end
                    </ul>
                    <div id="LAY_page"></div>
                </div>
                <div class="layui-tab-item">
                    <ul class="mine-view jie-row">
                        #for(x : collects.rows??)
                        <li>
                            <a class="jie-title" href="/jie/detail/#(x.contentId)" target="_blank">#(x.title)</a>
                            <i>收藏于#(x.createTime)</i>
                        </li>
                        #end
                    </ul>
                    <div id="LAY_page1"></div>
                </div>
            </div>
        </div>
    </div>
</div>
#end

#define js()
<script>
    layui.cache.page = 'user';
    layui.cache.user = {
        username: '游客'
        , uid: -1
        , avatar: '../../res/images/avatar/00.jpg'
        , experience: 83
        , sex: '男'
    };
    layui.config({
        version: "2.0.0"
        , base: '../../res/mods/'
    }).extend({
        fly: 'index'
    }).use('fly');
</script>
#end